/**
 * 存放一些公共数据
 */
//导航数据
exports.catData=function(req,res,next){
        Model('category').find({},function(err,catData){
            res.locals.catData=catData;
            next();
        });

};
//右边导航10条最新数据
exports.newData=function(req,res,next){
        Model('article').find({},{_id:1,title:1},{limit:10,sort:{addtime:-1}},function(err,newData){
            res.locals.newData=newData;
            next();
        });

};